<?php
/**
* 
*/
class QueryLimit
{
	
	protected $_limit;
	protected $_offset=0;
	function __construct($limit,$offset=0)
	{
		$this->_limit = $limit;
		$this->_offset = $offset;
	}
	
	public function __toString(){
		$offset = ', ';
		if($this->_offset!=0){
			$offset .= $this->_offset;
		}else{
			$offset = '';
		}
		return 'LIMIT '.$this->_limit.$offset;
	}
}
